package com.zsxb.crm.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zsxb.crm.dto.*;
import com.zsxb.crm.pojo.Clue;
import com.zsxb.crm.result.PageResult;

import java.time.LocalDate;
import java.util.ArrayList;

public interface ClueService extends IService<Clue> {
    /**
     * 分页查询
     * @param clueSearchDto
     * @return
     */
    PageResult pageQuery(ClueSearchDto clueSearchDto);

    Clue getByClueId(Long clueId);

    void gain(ClueGainDTO clueGainDTO);

    void add(AddClueDTO dto);



    /**
     * 线索池分页查询
     * @param clueSearchDto
     * @return
     */
    PageResult poolPageQuery(ClueSearchDto clueSearchDto);

    /**
     * 线索记录查询
     * @param clueId
     * @return
     */
    PageResult findRecordByClueId(Long clueId);

    void backCluePool(Long clueId, ClueRecrodDTO clueRecrodDTO);

    /**
     * 分配
     * @param clueGainDTO
     */
    void assign(ClueGainDTO clueGainDTO);

    void addClueDetail(ClueDTO clueDTO);

    /**
     * 线索池分页查询
     * @param dto
     * @return
     */
    //PageResult pageQueryPool(CluePoolPageDTO dto);
}
